首页>代码>Spring mvc+jdbc+jstl分页,ajax开发的java web酒店管理系统,适合入门>/新建文件夹 (2)/jiudianguanli/src/com/bdnq/controller/RuZhuController.java
package com.bdnq.controller; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import com.bdnq.entity.RuZhu; import com.bdnq.service.RuZhuService; @Controller @RequestMapping("/ruzhu") public class RuZhuController { @Autowired private RuZhuService ruZhuService; @RequestMapping("/getAllRuZhu") public String getAllFangJian(HttpServletRequest request){ List<RuZhu> list = ruZhuService.getAllRuZhu(); for (RuZhu ruZhu : list) { System.out.println(ruZhu.getId()); } request.setAttribute("rz", list); return "getAllRuZhu"; } }
最近下载更多
颜菜菜 LV2
2023年12月23日
214109 LV2
2022年12月9日
微信网友_6248713511227392 LV11
2022年12月5日
最代码-宋家辉 LV61
2022年6月23日
user123qyb LV1
2022年5月17日
xk16675552250 LV33
2022年3月31日
程序员阿莱 LV2
2021年11月23日
小火火 LV7
2021年10月4日
famloliy LV6
2021年8月23日
康日澜 LV9
2021年6月26日
最近浏览更多
pokerf LV5
4月26日
微信网友_6906962132258816 LV6
4月15日
yeanan LV1
3月28日
heshao LV2
1月11日
颜菜菜 LV2
2023年12月23日
yolo_light LV1
2023年12月21日
wdw2444156008
2023年10月31日
暂无贡献等级
760423530 LV2
2023年9月12日
百年孤独嘟嘟嘟 LV4
2023年9月12日
2017143155 LV12
2023年8月6日